home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / extensions / XTest.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  165 lines

  1. /* $Xorg: XTest.h,v 1.5 2001/02/09 02:03:24 xorgcvs Exp $ */
  2. /*
  3.  
  4. Copyright 1992, 1998  The Open Group
  5.  
  6. Permission to use, copy, modify, distribute, and sell this software and its
  7. documentation for any purpose is hereby granted without fee, provided that
  8. the above copyright notice appear in all copies and that both that
  9. copyright notice and this permission notice appear in supporting
  10. documentation.
  11.  
  12. The above copyright notice and this permission notice shall be included in
  13. all copies or substantial portions of the Software.
  14.  
  15. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  16. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  17. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
  18. OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  19. AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
  20. CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  21.  
  22. Except as contained in this notice, the name of The Open Group shall not be
  23. used in advertising or otherwise to promote the sale, use or other dealings
  24. in this Software without prior written authorization from The Open Group.
  25.  
  26. */
  27. /* $XFree86: xc/include/extensions/XTest.h,v 3.3 2001/12/14 19:53:28 dawes Exp $ */
  28.  
  29. #ifndef _XTEST_H_
  30. #define _XTEST_H_
  31.  
  32. #include <X11/Xfuncproto.h>
  33.  
  34. #define X_XTestGetVersion    0
  35. #define X_XTestCompareCursor    1
  36. #define X_XTestFakeInput    2
  37. #define X_XTestGrabControl    3
  38.  
  39. #define XTestNumberEvents    0
  40.  
  41. #define XTestNumberErrors    0
  42.  
  43. #define XTestMajorVersion    2
  44. #define XTestMinorVersion    2
  45.  
  46. #define XTestExtensionName    "XTEST"
  47.  
  48. #ifndef _XTEST_SERVER_
  49.  
  50. #include <X11/extensions/XInput.h>
  51.  
  52. _XFUNCPROTOBEGIN
  53.  
  54. Bool XTestQueryExtension(
  55.     Display*        /* dpy */,
  56.     int*        /* event_basep */,
  57.     int*        /* error_basep */,
  58.     int*        /* majorp */,
  59.     int*        /* minorp */
  60. );
  61.  
  62. Bool XTestCompareCursorWithWindow(
  63.     Display*        /* dpy */,
  64.     Window        /* window */,
  65.     Cursor        /* cursor */
  66. );
  67.  
  68. Bool XTestCompareCurrentCursorWithWindow(
  69.     Display*        /* dpy */,
  70.     Window        /* window */
  71. );
  72.  
  73. extern int XTestFakeKeyEvent(
  74.     Display*        /* dpy */,
  75.     unsigned int    /* keycode */,
  76.     Bool        /* is_press */,
  77.     unsigned long    /* delay */
  78. );
  79.  
  80. extern int XTestFakeButtonEvent(
  81.     Display*        /* dpy */,
  82.     unsigned int    /* button */,
  83.     Bool        /* is_press */,
  84.     unsigned long    /* delay */
  85. );
  86.  
  87. extern int XTestFakeMotionEvent(
  88.     Display*        /* dpy */,
  89.     int            /* screen */,
  90.     int            /* x */,
  91.     int            /* y */,
  92.     unsigned long    /* delay */
  93. );
  94.  
  95. extern int XTestFakeRelativeMotionEvent(
  96.     Display*        /* dpy */,
  97.     int            /* x */,
  98.     int            /* y */,
  99.     unsigned long    /* delay */
  100. );
  101.  
  102. extern int XTestFakeDeviceKeyEvent(
  103.     Display*        /* dpy */,
  104.     XDevice*        /* dev */,
  105.     unsigned int    /* keycode */,
  106.     Bool        /* is_press */,
  107.     int*        /* axes */,
  108.     int            /* n_axes */,
  109.     unsigned long    /* delay */
  110. );
  111.  
  112. extern int XTestFakeDeviceButtonEvent(
  113.     Display*        /* dpy */,
  114.     XDevice*        /* dev */,
  115.     unsigned int    /* button */,
  116.     Bool        /* is_press */,
  117.     int*        /* axes */,
  118.     int            /* n_axes */,
  119.     unsigned long    /* delay */
  120. );
  121.  
  122. extern int XTestFakeProximityEvent(
  123.     Display*        /* dpy */,
  124.     XDevice*        /* dev */,
  125.     Bool        /* in_prox */,
  126.     int*        /* axes */,
  127.     int            /* n_axes */,
  128.     unsigned long    /* delay */
  129. );
  130.  
  131. extern int XTestFakeDeviceMotionEvent(
  132.     Display*        /* dpy */,
  133.     XDevice*        /* dev */,
  134.     Bool        /* is_relative */,
  135.     int            /* first_axis */,
  136.     int*        /* axes */,
  137.     int            /* n_axes */,
  138.     unsigned long    /* delay */
  139. );
  140.  
  141. extern int XTestGrabControl(
  142.     Display*        /* dpy */,
  143.     Bool        /* impervious */
  144. );
  145.  
  146. void XTestSetGContextOfGC(
  147.     GC            /* gc */,
  148.     GContext        /* gid */
  149. );
  150.  
  151. void XTestSetVisualIDOfVisual(
  152.     Visual*        /* visual */,
  153.     VisualID        /* visualid */
  154. );
  155.  
  156. Status XTestDiscard(
  157.     Display*        /* dpy */
  158. );
  159.  
  160. _XFUNCPROTOEND
  161.  
  162. #endif /* _XTEST_SERVER_ */
  163.  
  164. #endif
  165.